package com.study.shop.service.impl;

import com.study.shop.entity.po.Category;
import com.study.shop.mapper.CategoryMapper;
import com.study.shop.service.CategoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class CategoryServiceImpl implements CategoryService {
    private final CategoryMapper categoryMapper;
    @Override
    public List<Category> nextLevelCategory(int id) {
      return categoryMapper.nextLevelCategory(id);
    }
}
